package com.ie.controller.admin;

import com.ie.common.http.ResponseResult;
import com.ie.common.sercurity.anno.AuthIgrone;
import com.ie.entity.AUserEntity;
import com.ie.service.admin.AUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @classname: AUserController
 * @Author: S2
 * @Description: //TODO
 * @Date: 2024/9/11  11:05
 * @Param:
 * @version: 1.0
 **/
@RestController
@RequestMapping("/api/admin")
public class AUserController {

    @Autowired
    AUserService aUserService;

    @AuthIgrone
    @PostMapping("/login")
    public ResponseResult<Map<String, String>> login(AUserEntity aUserEntity) {
        return aUserService.login(aUserEntity);
    }
}
